import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { Col, Row, Form, Field, Button, NavBar, Loading,
   Overlay, Image as VanImage, Uploader,Grid, GridItem,
   Cell, CellGroup, Picker, Popup, Icon, Search, Sticky, 
   Popover, Card, List, PullRefresh, Badge, ImagePreview,
   Tab, Tabs, Empty, Divider, Swipe, SwipeItem, Dialog} from 'vant';
import axios from 'axios'
import VueAxios from 'vue-axios'
import {putRequest, deleteRequest, postRequest, getRequest, uploadFileRequest} from './axios.js'
import config from "@/constants/Config.constants"
import "./assets/css/common.css"

Vue.prototype.CONFIG = config

Vue.prototype.getRequest = getRequest;
Vue.prototype.postRequest = postRequest;
Vue.prototype.deleteRequest = deleteRequest;
Vue.prototype.putRequest = putRequest;
Vue.prototype.uploadFileRequest = uploadFileRequest;

Vue.use(VueAxios, axios)
Vue.config.productionTip = false

Vue.use(Col).use(Row).use(Form).use(Field)
  .use(NavBar).use(Button).use(Loading)
  .use(Overlay).use(VanImage).use(Uploader)
  .use(GridItem).use(Grid).use(Cell).use(CellGroup)
  .use(Picker).use(Popup).use(Icon).use(Search)
  .use(Sticky).use(Popover).use(Card).use(List)
  .use(PullRefresh).use(Badge).use(ImagePreview)
  .use(Tab).use(Tabs).use(Empty).use(Divider)
  .use(Swipe).use(SwipeItem).use(Dialog)


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
